package cn.stylefeng.guns.modular.ums.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.ums.entity.MemberWithdraw;
import cn.stylefeng.guns.modular.ums.model.params.MemberWithdrawParam;
import cn.stylefeng.guns.modular.ums.model.result.MemberWithdrawResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 会员提现记录 服务类
 * </p>
 *
 * @author yzb
 * @since 2022-04-28
 */
public interface MemberWithdrawService extends IService<MemberWithdraw> {

    /**
     * 新增
     *
     * @author yzb
     * @Date 2022-04-28
     */
    void add(MemberWithdrawParam param);

    /**
     * 删除
     *
     * @author yzb
     * @Date 2022-04-28
     */
    void delete(MemberWithdrawParam param);

    /**
     * 更新
     *
     * @author yzb
     * @Date 2022-04-28
     */
    void update(MemberWithdrawParam param);

    /**
     * 提现审核
     * @param param
     */
    void withdrawAuth(MemberWithdrawParam param);


    /**
     * 查询单条数据，Specification模式
     *
     * @author yzb
     * @Date 2022-04-28
     */
    MemberWithdrawResult findBySpec(MemberWithdrawParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author yzb
     * @Date 2022-04-28
     */
    List<MemberWithdrawResult> findListBySpec(MemberWithdrawParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author yzb
     * @Date 2022-04-28
     */
     LayuiPageInfo findPageBySpec(MemberWithdrawParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author yzb
     * @Date 2022-04-28
     */
    LayuiPageInfo findPageBySpecForAdmin(MemberWithdrawParam param);

}
